// to populate the Call Notes object with each new entry for the Lead Notes

trigger CreateNewNote on Lead (after insert) {
     system.debug('CCCCCCCCCCCCCCYES');
     List<Notes__c> listObj = new List<Notes__c>();

    for(lead newNote :trigger.New){
    if (newNote.most_recent_note__c != null){
    system.debug('CCCCCCCCCCCCCCYES1');

        Notes__c cn = new Notes__c();
        cn.Lead__c = newNote.Id;
        cn.Notes__c = newNote.most_recent_note__c;
        listObj.add(cn);}

    }  
    
    if(listObj.size()>0){
        insert listObj;
    }

}